package test;

import com.woniux.entity.Animal;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author 佘赛飞
 * @create 2021 -11 -10 5:18 PM
 */
public class Springday02TestFactoryBean {

    public static void main(String[] args) {
        String path ="applicationContext.xml";
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext(path);
        Animal animal = applicationContext.getBean("bird",Animal.class);
        animal.eat();
    }
}
